package projectisd.client;

import junit.framework.TestCase;

public class VakTest extends TestCase {

	Vak k = new Vak("Java", "java programmeren");
	Vak m = new Vak("Javaaa", "java programmeren");

	public void testVakStringString() {
		assertEquals("Java", k.getName());
		assertEquals("java programmeren", k.getOmschrijving());
	}

	public void testSetCode() {
		k.setCode("1JAVA2");
		assertEquals("1JAVA2", k.getCode());
	}

	public void testSetCode1() {
		m.setCode("1JAVA2");
		k.setCode("1JAVA2");
		assertEquals(null, k.getCode());
	}

	public void testSetName() {
		k.setName("Javaa");
		assertEquals("Javaa", k.getName());
	}
	public void testSetName1() {
		k.setName("Javaa123");
		assertEquals("Javaa", k.getName());
	}
	public void testSetName2() {
		k.setName("Javaa!@#");
		assertEquals("Javaa", k.getName());
	}
	public void testSetName3() {
		k.setName("Javaaa");
		assertEquals("Javaa", k.getName());
	}

	public void testSetOmschrijving() {
		k.setOmschrijving("javaa programmeren");
		assertEquals("javaa programmeren", k.getOmschrijving());	
	}

}
